<template>
	<view class="body">
		<view class="user-chat-bottom u-f u-f-ac">
			<input type="text" placeholder="文明发言" v-model="text">
			<view class="submit icon iconfont icon-fabu"  @tap='submit'></view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				text:""
			}
		},
		methods:{
			submit(){
				this.$emit('submit',this.text)
				this.text = ""
			}
		}
	}
</script>

<style scoped>
	.user-chat-bottom {
		border-top:1upx solid #eee;
		position: fixed;
		padding:  0 20upx;
		bottom:0upx;
		align-items: center;
		width:100%;
		height:120upx;
		background: #fff;
		
	}
	.user-chat-bottom input {
		flex:1;
		margin-right: 20upx;
		padding: 10upx 20upx;
		border-radius: 10upx;
		background: #f7f7f7; 
	}
	.user-chat-bottom .submit{
		width: 80upx;
		padding: 0 20upx;
		font-size: 45upx;
	}
</style>
